import request from '@/utils/request'

// 获取公告列表
export function getgonggao_list() {
    return request({
        url: '/system/danye/list',
        method: 'get'
    })
}

export function putgonggao_list(data) {
    return request({
        url: '/system/danye',
        method: 'post',
        data
    })
}

//上传单页
export function deligonggao_list(data) {
    return request({
        url: '/system/danye',
        method: 'put',
        data
    })
}

//获取轮播图
export function getlunbo_list() {
    return request({
        url: '/system/rotationPlot/list',
        method: 'get'
    })
}



//添加轮播图
export function putlunbo_list(data) {
    return request({
        url: '/system/rotationPlot/add',
        method: 'post',
        data
    })
}

//删除轮播图
export function dellunbo_list(id) {
    return request({
        url: '/system/rotationPlot/del?ids=' + id,
        method: 'post'
    })
}

//修改轮播图
export function editlunbo_list(data) {
    return request({
        url: '/system/rotationPlot/edit',
        method: 'post',
        data
    })
}

